package com.halflife.framework.participant;

import com.halflife.framework.participant.user.UserView;
import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;

/**
 * Created by zhaoyf on 2018/11/3
 */
@QueryAnn(mainTitle = "人员管理",title = "教师管理",table = "t_teacher")
public class Teacher  extends Participant {
    @QueryAnn(value = "姓名", operate = "like",refered = true)
    private String name;
    @QueryAnn(value = "教师编号", operate = "like",refered = true)
    private String code;
    @QueryAnn(value = "备注")
    private String memo;
    @QueryAnn(value = "年级Id")
    private Integer gradeId;
    @QueryAnn(value = "学科Id")
    private Integer subjectId;


    //用户UserView
    @QueryAnn(value = "用户Id")
    private Integer userViewId;
    @QueryAnn(value = "用户")
    @Join()
    private UserView userView;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Integer getUserViewId() {
        return userViewId;
    }

    public void setUserViewId(Integer userViewId) {
        this.userViewId = userViewId;
    }

    public UserView getUserView() {
        return userView;
    }

    public void setUserView(UserView userView) {
        this.userView = userView;
    }
}
